import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter/material.dart';
class Profile extends StatefulWidget {
  @override
  _ProfileState createState() => _ProfileState();
}

class _ProfileState extends State<Profile> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: BackButton(
          color: Colors.white,
        ),
        backgroundColor: Colors.red,
        title: Text('个人资料',
          style: TextStyle(
              color: Colors.white,
              fontSize: 30.sp,
              fontWeight: FontWeight.bold),),
        centerTitle: true,
      ),
      body: Column(
        children: [
          Text('管理我的账号'),
          ListTile(
            title: Text('昵称'),
            trailing: TextField(
              decoration: InputDecoration(
                hintText: '请输入昵称'
              ),
            ),
          ),
          ListTile(
            title: Text('手机号码'),
              trailing:TextField(
                decoration: InputDecoration(
                    hintText: '请输入手机号码'
                ),
              )
          ),
          ListTile(
            title: Text('ID'),
            trailing: Text('7759'),
          ),
          Container(
            width: 700.w,
            height:80.w,
            child: FlatButton(
              shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(25.w))
              ),
              color: Colors.red,
              onPressed: (){},
              child: Text('保存修改',style: TextStyle(
                  color: Colors.white
              ),),
            ),
          )

        ],
      ),
    );
  }
}
